package com.tradesolver;

import com.google.appengine.repackaged.com.google.common.base.Objects;

public class UpdateData {
  public String ticker;
  public float price;
  public float percentChange;
  public long volume;

  public UpdateData() {
  }

  public UpdateData(String ticker, float price, float percentChange, long volume) {
    super();
    this.ticker = ticker;
    this.price = price;
    this.percentChange = percentChange;
    this.volume = volume;
  }

  public String getTicker() {
    return ticker;
  }

  public void setTicker(String ticker) {
    this.ticker = ticker;
  }

  public float getPrice() {
    return price;
  }

  public void setPrice(float price) {
    this.price = price;
  }

  public float getPercentChange() {
    return percentChange;
  }

  public void setPercentChange(float percentChange) {
    this.percentChange = percentChange;
  }

  public long getVolume() {
    return volume;
  }

  public void setVolume(long volume) {
    this.volume = volume;
  }
  
  @Override
  public String toString() {
    return Objects.toStringHelper(this).add("ticker", ticker).add("price", price).add("percentChange", percentChange)
        .add("volume", volume).toString();
  }

}